package it.asvp.asvp_portal.data.entity.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "address", catalog = "asvp_db")
public class Address extends BaseEntity {

  @Column(name = "Street", nullable = false, length = 200)
  private String street;

  @Column(name = "civic_number", nullable = false, length = 50)
  private String civicNumber;

  @Column(name = "postal_code", nullable = false, length = 50)
  private String postalCode;

  @Column(name = "city", nullable = false, length = 100)
  private String city;

  @Column(name = "province", nullable = false, length = 100)
  private String province;

  public Address() {
  }

  public Address(String street, String civicNumber, String postalCode, String city, String province, Date createdOn, Date lastUpdate) {
    this.street = street;
    this.civicNumber = civicNumber;
    this.postalCode = postalCode;
    this.city = city;
    this.province = province;
    this.createdOn = createdOn;
    this.lastUpdate = lastUpdate;
  }

  public String getStreet() {
    return this.street;
  }

  public void setStreet(String street) {
    this.street = street;
  }

  public String getCivicNumber() {
    return this.civicNumber;
  }

  public void setCivicNumber(String civicNumber) {
    this.civicNumber = civicNumber;
  }

  public String getPostalCode() {
    return this.postalCode;
  }

  public void setPostalCode(String postalCode) {
    this.postalCode = postalCode;
  }

  public String getCity() {
    return this.city;
  }

  public void setCity(String city) {
    this.city = city;
  }

  public String getProvince() {
    return this.province;
  }

  public void setProvince(String province) {
    this.province = province;
  }

}
